<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
​
<html>
<head>
    <title>修改书籍</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入 Bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"rel="stylesheet">
</head>
<body>
<div class="container">
    ​
    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="page-header">
                <h1>
                    <small>修改书籍</small>
                </h1>
            </div>
        </div>
    </div>
    <form action="${pageContext.request.contextPath}/book/updateBook" method="post">
        <input type="hidden" name="bookId" value="${book.bookId}"/>
        书籍封面：<input type="text" name="bookImg" value="${book.bookImg}"><br><br><br>
        书籍名称：<input type="text" name="bookName" value="${book.bookName}"><br><br><br>
        书籍数量：<input type="text" name="bookCounts" value="${book.bookCounts}"><br><br><br>
        书籍详情：<input type="text" name="detail" value="${book.detail}"><br><br><br>
        书籍价格：<input type="text" name="price" value="${book.price}"><br><br><br>
        书籍分类：<select name="bookkindId" autocomplete="off">

                    <c:forEach items="${bookKinds}" var="bookKinds">
                        <c:set var="kindid" value="${book.bookKind.kindId}" scope="session"/>
                        <option value="${bookKinds.kindId}" <c:if test="${bookKinds.kindId == kindid}">selected="selected"</c:if>>${bookKinds.kindName}</option>
                    </c:forEach>
                        <%--<option value="1">1</option>
                        <option value="1" selected="selected">2</option>
                        <option value="1">3</option>--%>
                </select><br><br><br>
        <input type="submit" class="btn btn-primary btn-lg" value="提交"/>
    </form>
    ​
</div>
</body>
</html>
